<?php
declare (strict_types=1);

namespace app\store\validate;

use think\Validate;

/**
 * 验证类：供应商信息
 * Class Supplier
 * @package app\api\validate\passport
 */
class Supplier extends Validate
{
    /**
     * 验证规则
     * @var array
     */
    protected $rule = [
        //公司名称
        'business_name' => ['require'],
        //公司地址
        'business_address' => ['require'],
        'email' => 'email',
    ];

    /**
     * 验证提示
     * @var string[]
     */
    protected $message  =   [
        'business_name.require' => '公司名称不能为空',
        'business_address.require' => '公司地址不能为空',
        'business_address.email' => '邮箱格式不正确',
    ];
}